#!/bin/bash
echo "##### Start to generate $1.pem #####"
openssl pkcs12 -in $1 -passin pass:test%11 -out $1.pem -cacerts -nokeys
echo "##### Start to generate id_key.pem #####"
openssl pkcs12 -in $1 -passin pass:test%11 -passout pass:test%11 -out id_key.pem -nocerts
echo "##### Start to generate id.pem #####"
openssl pkcs12 -in $1 -passin pass:test%11 -out id.pem -nokeys
